Expand description

cargo, make me a project

cargo-generate is a developer tool to help you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template.

Here’s an example of using cargo-generate with this template: demo.gif

Documentation

See the cargo-generate guide for complete documentation.

Quickstart

Installation

cargo install cargo-generate

Usage

cargo generate --git https://github.com/username-on-github/mytemplate.git

cargo generate username-on-github/mytemplate

cargo generate gl:username-on-gitlab/mytemplate
cargo generate bb:username-on-bitbucket/mytemplate

cargo generate gh:username-on-github/mytemplate

cargo help generate

License

Licensed under either of

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. If you want to contribute to cargo-generate, please read our CONTRIBUTING notes.

cargo-generate would not be what it is today without the wonderful contributions from the community. Thank you!

Macros

Structs

Enums

Functions

Panics